<template>
   <div class="container" >
    <UserInfo>
        <template #userName>
            {{ list[0].userName }}
        </template>
        <template v-slot:word>
            {{ list[1].word }}
        </template>
        <template v-slot:mobil>
            {{ list[2].mobil }}
        </template>
    </UserInfo>
   </div>
</template>
<script>
import UserInfo from './components/UserInfo.vue';
   export default {
     name: '',
     components:{
        UserInfo
     },
     data: function(){
       return {
        list:[
            {userName:'张三',word:'123',mobil:'110'},
            {userName:'李四',word:'456',mobil:'120'},
            {userName:'王五',word:'789',mobil:'119'}
        ]
       }
     },
     methods:{
     }
   }
</script>
<style>
  html,
  body, 
  #app{
    height: 100%;
  }
</style>
<style scoped>
   .container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      background-color: aliceblue;
   }
   .tr{
      width: 200px;
      flex-basis: 50px;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      background-color: beige;
      align-items: center;
    }
   .second{
      background-color: aqua;
   }
</style>